﻿@model LeadExpress.Models.ViewPages.ProductManagementModel
           
@{
    ViewBag.Title = "Cập nhật bản tin RV24";
    Layout = "~/Views/Shared/_Layout.MyAccount.cshtml";
}
<form method="post" class="form" action="/MyAccount/ProductList/Edit/@ViewBag.ProductId">
	<fieldset id="apps">
		<h2 class="app">
	        <strong>Express - Cập nhật bản tin RV24</strong>
        </h2>
		<div class="errorMessage" data-bind="visible: InvalidateForm" >
			<span class="error">Xin hãy nhập thông tin bên dưới chính xác.</span>
		</div>				
		<div class="title">
			<h3>Thông tin RV24</h3>
		</div>
		
		<div class="columns">
			<div class="col indent" style="width:800px">
				<div class="row">
					<label for="text1">Tiêu đề:</label>
					<input class="text" type="text" style="width:550px" data-bind="value: Title, attr:{maxlength:250}" name="Title" />
				</div>
                <div class="row">
					<label for="text10">Từ khóa (Meta):</label>
					<input class="text" type="text" style="width: 550px" data-bind="value: MetaKeywords, attr:{maxlength:250}" name="MetaKeywords"/>
				</div>
				<div class="row">
					<label for="text2">Mô tả (Meta):</label>
					<input class="text" type="text" style="width: 550px" data-bind="value: MetaDescription, attr:{maxlength:250}" name="MetaDescription" />
				</div>
				<div id="editform" class="row">
					<label for="text12">Kích hoạt:</label>
                    <div class="groupinput"><input class="text" type="checkbox" data-bind="checked: Active" name="Active" /></div>					    
				</div>
			</div>
		</div>  	
		<div class="title">
			<h3>Thông tin tóm lược </h3>
		</div>
        <div class="columns" style="padding-top:0px">  
			<div class="row">
				<textarea id="elm1" class="text" cols="80" rows="15" style="width: 100%" data-bind="value: ShortDesc, attr:{maxlength:500}" name="ShortDesc">
                </textarea>
			</div>
        </div>  	
		<div class="title">
			<h3>Thông tin chi tiết</h3>
		</div>
        <div class="columns" style="padding-top:0px">     
			<div class="row">
				<textarea id="elm2" class="text" cols="80" rows="35" style="width: 100%" data-bind="value: LongDesc" name="LongDesc">
                </textarea>
			</div>
        </div>

		<div class="foot-info">
			<h3 class="centered-wbtn centered-wbtn-bottom save">
  				<span>
  					<a class="btn btn-cancel-page" href="/MyAccount/ProductList">previous</a>
					<input type="button" class="btn btn-submit-page" data-bind="click: SubmitForm" value="Submit" />
                </span>
			</h3>
		</div>
	</fieldset>
</form>
<script type="text/javascript">
    var data = @(Html.Raw(Json.Encode(Model)));
</script>
<script src="/Scripts/Lib/EditProduct.js" type="text/javascript"></script>
<script src="/TinyMCE/tiny_mce.js" type="text/javascript"></script>
<script src="/TinyMCE/tinymce.initialize.js" type="text/javascript"></script>